/*******************************************************************

    Author: Xiao
    Date: 2022/3/25 17:30

*******************************************************************/
package main

import (
	"github.com/gin-gonic/gin"
	"mcr/pkg/config"
	"mcr/pkg/controller"
	"mcr/pkg/dao"
	"mcr/pkg/websocket"
)

func main() {
	// 初始化数据库
	dao.InitFactory()
	websocket.InitSocketManager()
	app := gin.Default()
	controller.InitHTTPRegister(app)
	controller.InitListener()
	app.Run(config.ConfigValue.ListenAddr)
}
